﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsTest.SysManager
{
    public partial class UserManager : MainTabUserContorl
    {
        string[][] initData = new string[][] { new string[] { "谢鹏", "xiep", "事业部", "总经理", "系统管理员", "陈静", "13700022223", "24328894", "xiep@163.com", "已婚", "6-30", "香蜜湖A栋808", "有效" }, new string[] { "曹映辉", "caoyh", "销售部", "业务员", "销售", "谢鹏", "13700022255", "24328898", "caoyh@163.com", "未婚", "6-30", "蛇口108", "有效" }, new string[] { "陈静", "chenj", "总裁室", "董事长", "系统管理员", "", "13900022225", "64328898", "chenj@163.com", "保密", "6-30", "", "有效" } };
        public UserManager()
        {
            InitializeComponent();

            this.dataGridView1.Rows.Add();
            this.dataGridView1.Rows.Add();
            for (int i = 0; i < initData.Length; i++)
            {
                for (int j = 0; j < initData[0].Length; j++)
                {
                    this.dataGridView1.Rows[i].Cells[j].Value = initData[i][j];
                }

            }
        }

        public void setToolBarHidden()
        {
            this.splitContainer2.Panel1Collapsed = true;
        }

        private void button10_Click(object sender, EventArgs e)
        {
            this.splitContainer1.Panel2Collapsed = false;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.splitContainer1.Panel2Collapsed = false;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.splitContainer1.Panel2Collapsed = false;
        }

        private void button9_Click(object sender, EventArgs e)
        {
            this.splitContainer1.Panel2Collapsed = true;
        }

        private void button3_Click(object sender, EventArgs e)
        {
            PasswordReset pr = new PasswordReset();
            pr.ShowDialog();
        }
    }
}
